//
//  GuiderCardScenicCell.m
//  ImGuider
//
//  Created by 王鹏宇 on 2017/4/24.
//  Copyright © 2017年 imguider. All rights reserved.
//

#import "GuiderCardScenicCell.h"
#import "StarRateView.h"
@interface GuiderCardScenicCell()
@property (weak, nonatomic) IBOutlet UILabel *scenicNameLabel;

@property (weak, nonatomic) IBOutlet StarRateView *starView;
@property (weak, nonatomic) IBOutlet UIImageView *scenicImageView;
@property (weak, nonatomic) IBOutlet UIView *bgView;

@end

@implementation GuiderCardScenicCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.bgView.alpha = 0.2;
}

- (void)configDataWithModel:(LineModel *)model {
    
    self.scenicNameLabel.text = model.linename;
    [self.starView setScore:model.score.floatValue/10];
    [self.scenicImageView setImageURL:[NSURL URLWithString:model.pictureArray.firstObject] placeholderImage:[UIImage imageNamed:@"placeholder_squ"]];
}

@end
